package Modelo;

public class PsOrgLocPhones extends BaseModelo
{
  private static String tableName = "PS_ORG_LOC_PHONES";
  private static EstructuraFila estructuraFila = new EstructuraFila();

  public static void setEstructuraFila(EstructuraFila aEstructuraFila)
  {
    estructuraFila = aEstructuraFila;
  }

  public static String getTableName()
  {
    return tableName;
  }

  public static EstructuraFila getEstructuraFila()
  {
    return estructuraFila;
  }

  public PsOrgLocPhones(String ext_org_id) {
    blanquearCamposObligatorios(estructuraFila);

    setExt_org_id(ext_org_id);
  }

  public void setExt_org_id(String ext_org_id)
  {
    asignarCampo("EXT_ORG_ID", ext_org_id);
  }

  public void setOrg_location(String org_location) {
    asignarCampo("ORG_LOCATION", org_location);
  }

  public void setPhone_type(String phone_type) {
    asignarCampo("PHONE_TYPE", phone_type);
  }

  public void setCountry_code(String country_code) {
    asignarCampo("COUNTRY_CODE", country_code);
  }

  public void setPhone(String phone) {
    asignarCampo("PHONE", phone);
  }

  public AtributoValor getExt_org_id() {
    return obtenerAtributoValor("EXT_ORG_ID");
  }

  public AtributoValor getOrg_location() {
    return obtenerAtributoValor("ORG_LOCATION");
  }

  public AtributoValor getPhone_type() {
    return obtenerAtributoValor("PHONE_TYPE");
  }

  public AtributoValor getCountry_code() {
    return obtenerAtributoValor("COUNTRY_CODE");
  }

  public AtributoValor getPhone() {
    return obtenerAtributoValor("PHONE");
  }

  static
  {
    estructuraFila.adicionar("EXT_ORG_ID", "S", true, "getExt_org_id");
    estructuraFila.adicionar("ORG_LOCATION", "N", true, "getOrg_location");
    estructuraFila.adicionar("PHONE_TYPE", "S", true, "getPhone_type");
    estructuraFila.adicionar("COUNTRY_CODE", "S", true, "getCountry_code");
    estructuraFila.adicionar("PHONE", "S", true, "getPhone");
  }
}